<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$.ajax({
			type : "post",
			dataType : "json",
			url : "${pageContext.request.contextPath}/userAction!getLoginUserInfo.action",
			error : function(info) {
				$.messager.show({
					msg : '获取信息失败！',
					title : '提示'
				});
				eval(info.responseText);
			},
			success : function(userInfo) {
				$("#name").val(userInfo.name);
				$("#displayName").val(userInfo.displayName);
				$("#email").val(userInfo.puserExtend.email);
				$("#addr").val(userInfo.puserExtend.addr);
				$("#phone").numberbox("setValue", userInfo.puserExtend.phone);
			}
		});
	});
</script>
<form id="user-userinfo-form" method="post" style="margin: 0">
	<table class="tableForm">
		<tr>
			<th>显示名称</th>
			<td><input type="text" name="displayName" id="displayName" style="width: 200px" class="easyui-validatebox" data-options="required:true"></td>
		</tr>
		<tr>
			<th>邮箱</th>
			<td><input type="text" name="puserExtend.email" id="email" style="width: 200px" class="easyui-validatebox" data-options="validType:'email'"></td>
		</tr>
		<tr>
			<th>电话</th>
			<td><input type="text" name="puserExtend.phone" id="phone" style="width: 200px" class="easyui-numberbox" data-options="required:true"></td>
		</tr>
		<tr>
			<th>所在地</th>
			<td><textarea style="width: 200px; height: 45px; font-size: 12px;" id="addr" name="puserExtend.addr"></textarea></td>
		</tr>
	</table>
</form>